#include <stdio.h>


int* findDisappearedNumbers(int* nums, int numsSize, int* returnSize){
    int* hash = (int*)malloc(sizeof(int)*(numsSize+1));
    int count =0;
    for(int i =0; i<numsSize; i++)
    {
        hash[nums[i]] = 1;
    }

    *returnSize = 0;

    for(int i =1; i<=numsSize; i++)
    {
        if(hash[i] != 1)
        {
            hash[count++]=i;
        }
    }

    *returnSize = count;

    return hash;
}
